﻿<?php
	('Access-Control-Allow-Origin：*');
	include("mysql.php");
	$id = $_POST["id"];
	$checkQuery = $_POST["checkQuery"];
	$db = new mysql();

	if ($checkQuery) {
		$sql = "UPDATE students SET isTi = '1' WHERE id in ({$checkQuery})";
	}else{
		$sql = "UPDATE students SET isTi = '1' WHERE id = '{$id}'";
	}

	echo $db->Query($sql);

	$db->close();
?>